<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>旅游网站管理后台</title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
    <script src="js/respond.js"></script>
    <script src="js/admin.js"></script>
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
    <script src="js/Common.js" type="text/javascript"></script>
    
    
    
    
</head>

<body>

	<script>  

function  fenye(pagenum){

	form2.action = form2.action+"?pagenum="+pagenum;
	form2.submit();

}
 
</script>
<form action="${url }" method="post"  name="form2">

<input type="hidden"  name="username" value="${username }" />       
         
</form>


<%@ include file="../menu.jsp" %>



<div class="admin">
	
    <div class="panel admin-panel">
    	<div class="panel-head"><strong>${title }</strong></div>
         <form action="${url }" method="post">
        
        <div class="padding border-bottom">
           
            用户名：<input name="username" type="text"  value="${username }">
			
            <input type="submit" class="button button-small border-green"   value="检索" />

           
        </div>
        </form>
        
        
        <table class="table table-hover">
        	<tr>
        	<th >用户名</th>
        	<th >密码</th>
        	<th >姓名</th>
        	<th >手机号码</th>
        	<th >联系地址</th>
        	<th >注册时间</th>
        
        	
        	<th >操作</th>
        	</tr>
        	
        	 <c:forEach items="${list}"  var="bean">
            <tr>
           
            <td>${bean.username }&nbsp;</td>
            <td>${bean.password }&nbsp;</td>
            <td>${bean.name }&nbsp;</td>
            <td>${bean.tel }&nbsp;</td>
            <td>${bean.address }&nbsp;</td>
            <td>${bean.ctime }&nbsp;</td>
    
            
            
        	 <td>
 
        	 <a class="button border-yellow button-little" href="${url2 }delete.do?id=${bean.id }" onclick="{if(confirm('确认删除?')){return true;}return false;}">删除</a>

        	 </td>
           
           </tr>
           
           </c:forEach>
           
         
        
        </table>

        <div class="panel-foot text-center">
            ${pagerinfo }
        </div>
    </div>

    <br />
    
</div>


</body>
</html>
